package com.ysu.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.ysu.demo.dataobject.Project;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysu.demo.dto.ProjectDTO;
import com.ysu.demo.enums.ProjectState;
import com.ysu.demo.from.project.CollegeListForm;
import com.ysu.demo.from.project.ProjectApplyForm;
import com.ysu.demo.from.project.ProjectListPagesFrom;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lhw
 * @since 2019-08-21
 */
public interface IProjectService extends IService<Project> {

    IPage<Project> allList(ProjectListPagesFrom from);

    ProjectDTO one(Integer id);

    Boolean changeState(ProjectState oldState,ProjectState newState,Integer id,String url);

    Boolean projectApply(ProjectApplyForm form);

    List<Project> collegeList(CollegeListForm form);

}
